package com.iot.comprehensive.face.model;

import com.fasterxml.jackson.annotation.*;
import io.swagger.annotations.ApiModel;
import lombok.Data;

import javax.persistence.*;
import java.util.List;

/**
 * @Author 朱泽玉
 * @Create 2021/6/26 14:56
 * @Description 用户信息
 * @Modified By:
 */
@Data
@Entity
@ApiModel("用户信息表")
public class User {
    @Id
    private Long id;
    // 姓名
    private String name;

    // 性别
    private String sex;

    // 年龄
    private int age;

    //住址
    private String address;

    // 创建时间
    private String date_time;

    // 更新时间
    private String last_time;

    // 其他描述
    private String description;

    private String idNumber;

//    @MapsId
//    @OneToOne(cascade = CascadeType.ALL)
//    private Account account;

//    @JsonBackReference
//    @OneToMany(mappedBy = "user", cascade = CascadeType.ALL)
//    private List<AccessForm> accessFormList;
}
